# -*- codeing = utf-8 -*-
# @Time : 2021/3/2 11:51
# @Atuthor: 朱朱
# @File: tools.py
# @Software: PyCharm
import hashlib

def encrypt_password(password, char = 'scool@8250'):
    h = hashlib.sha256() # 加密方式
    h.update(password.encode('utf8')) # 拼接
    h.update(char.encode('utf8'))

    return h.hexdigest() # 返回十六进制数据

# print(encrypt_password('123456'))